package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.entity.Dish;
import org.apache.ibatis.annotations.Param;

/**
 * 菜品持久层接口
 * @Author Vsunks.v
 * @Blog blog.sunxiaowei.net
 * @Description: 菜品持久层接口
 */
public interface DishMapper extends BaseMapper<Dish> {

    /**
     * 批量起售停售
     *
     * @param status 目标状态
     * @param ids    目标id们
     * @return 影响的行数
     */
    int updateStatus(@Param("status") Integer status, @Param("ids") Long[] ids);
}
